define(function () {
    'use strict';

    function ctrl($scope,$state,WebService,LocalCacheService){

        var par = $scope.param = new Array();
        par.content = "account page";
        par.remark = "(登录后可见)";

        $scope.onBackKeyDown = function(){
            $state.go("tab.index");
        };

        $scope.logout = function () {
                LocalCacheService.removeUser();
                $state.go("tab.index");
        };

    }
    ctrl.$inject = ['$scope','$state','WebService','LocalCacheService'];
    return ctrl;
});
